package MessagePacks;

import java.util.HashMap;

/**
 *@author Juan Alapin - 324507516
 *@author Giora Yaffe - 036551281
 *@author Shachar Gritzman - 300174026
 *@author Nir Porat - 021515580
*/

public class DifferentUsersPack extends MessagePack {
	
	private static final long serialVersionUID = 1L;
	private int curID;
	private int perLvl;
	private HashMap<String,String> mMap;
	
	/**
	 * Constructor
	 * @param curID 
	 * @param perLevel - permission level
	 */
	public DifferentUsersPack(int curID,int perLevel){
		super(MessagePack.getDifferentUsers);
		this.curID=curID;
		this.perLvl=perLevel;
	}

	public int getcurID(){
		return(curID);
		}

	public int getpermissionLevel(){
		return(perLvl);
		}
	
	/**
	 * 
	 * @param tempMap - HashMap<String,String>
	 */
	public void setHashMap(HashMap<String,String> tempMap){
		this.mMap=tempMap;
		}
	
	/**
	 * 
	 * @return HashMap<String,String>
	 */
	public HashMap<String,String> getHashMap(){
		return(mMap);
		}
}

